package cn.geminis.warehouse.service.inventory.entity;

import cn.geminis.lowcode.annotation.CrudController;
import cn.geminis.lowcode.annotation.CrudRepository;
import cn.geminis.lowcode.annotation.QueryFilter;
import cn.geminis.lowcode.annotation.UuidEntity;
import jakarta.persistence.Column;
import jakarta.persistence.Embedded;
import lombok.Getter;
import lombok.Setter;

/**
 * 容器
 */
@Getter
@Setter
@UuidEntity
@QueryFilter
@CrudRepository
@CrudController
public class Container {
    /**
     * 编号
     */
    @Column(length = 36)
    private String no;

    /**
     * 类型
     */
    @Column(nullable = false, length = 16)
    private String type;

    /**
     * 是否装于其他容器
     */
    @Column(nullable = false)
    private boolean contained;

    @Embedded
    private Position position;

}
